package com.example.securitytest.bean;

import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;

public class Test {
    private int id;

    private int age;
    @Range(min = -88,max = 12133)
    private int class1;
    @Range(max = 213321L)
    private int class2;
    @NotNull
    private String name;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public int getClass1() {
        return class1;
    }

    public void setClass1(int class1) {
        this.class1 = class1;
    }

    public int getClass2() {
        return class2;
    }

    public void setClass2(int class2) {
        this.class2 = class2;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
